package net.xyzmc.pokemonbroadcast.bukkit.commands;

import net.xyzmc.pokemonbroadcast.bukkit.Main;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;

public class Reload implements CommandExecutor {

    @Override
    public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) {
        if (commandSender.hasPermission("pokemonbroadcast.reload")) {
            Main.instance.init();
            commandSender.sendMessage("§a重载配置文件成功");
            return true;
        }
        return false;
    }
}
